package com.jml.pageHelp.controller;


import com.github.pagehelper.PageInfo;
import com.jml.pageHelp.Entity.User;
import com.jml.pageHelp.Service.PageUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PageUserController {

	@Autowired
	private PageUserService pageUserService;

	@RequestMapping("/pagehelp")
	@ResponseBody
	public Object pageHelp(){
		PageInfo<User> userList = pageUserService.findUserList(3, 3);
		return userList;
	}
}
